package com.qiaofang.applet.service.other.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

@Data
@Document(collection = "other_message_list")
@ApiModel("微聊列表")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MessageList extends BaseDomain {

    @ApiModelProperty("会员ID")
    private String memberId;

    @ApiModelProperty("经纪人唯一UUID")
    private String employeeUniqueUuid;

    @ApiModelProperty("用户名")
    private String memberName;

    @ApiModelProperty("经纪人名称")
    private String employeeName;

    @ApiModelProperty("部门UUID")
    private String deptUuid;

    @ApiModelProperty("归属部门")
    private String deptName;

    @ApiModelProperty("归属城市")
    private String cityName;

    @ApiModelProperty("最近关联房源信息")
    private String propertyInfo;

    @ApiModelProperty("最近聊天时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date msgTimestamp;

    @ApiModelProperty("消息列表")
    private List<MessageParam> messageParamList;
}
